# Standard libraries
import wsgiref.handlers
import api


# AppEngine imports
from google.appengine.ext import webapp
import admin
class SanityCheck(webapp.RequestHandler):
	def get(self):
		self.response.out.write("You're not crazy!")

# Map URLs to request handler class
application = webapp.WSGIApplication([('/',api.ApiServer),
									   ('/admin', admin.AdminServer),
                                      ('/gifts', api.ApiServer),
									  ('/giftTransactions', api.ApiServer),
									  ('/products',api.ApiServer),
                                      ('/categories',api.ApiServer),
                                      ('/tags',api.ApiServer),
                                      ('/bugreport',api.ApiServer)],
                                     debug=True)

#application = webapp.WSGIApplication([('/', SanityCheck)],debug=True)

# Fire it up!
wsgiref.handlers.CGIHandler().run(application)
